//
//  TagCloudView.h
//  Task Views
//
//  Created by Chris Karr on 3/3/09.
//  Copyright 2009 Chris J. Karr. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import "TaskManager.h"

@interface TagCloudView : NSView 
{
	IBOutlet NSArrayController * tasks;
	IBOutlet TaskManager * taskManager;

	IBOutlet NSWindow * settings;
	
	NSUInteger tasksVisible;
	
	// Color mapper
	
	IBOutlet NSTextField * substring;
	IBOutlet NSColorWell * colorWell;
	
	// Cached prefs
	
	NSString * key;
	NSNumber * multiplier;
	NSNumber * adjustment;
	NSColor * color;
	NSColor * backgroundColor;
	NSString * colorField;
	NSDictionary * mappings;
	NSArray * colorStrings;	

	NSRect lastSize;
	
	BOOL useLog;
}

@property(retain) NSString * key;
@property(retain) NSNumber * multiplier;
@property(retain) NSNumber * adjustment;
@property(retain) NSColor * color;
@property(retain) NSColor * backgroundColor;
@property(retain) NSString * colorField;
@property(retain) NSDictionary * mappings;
@property(retain) NSArray * colorStrings;	

- (IBAction) settings:(id) sender;
- (IBAction) closeSettings:(id) sender;
- (IBAction) addColor:(id) sender;

@end
